package com.joinway.framework.support.validation.constraints;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import javax.validation.Constraint;
import javax.validation.Payload;

import com.joinway.framework.support.validation.validator.CellPhoneValidator;

@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Constraint(validatedBy = CellPhoneValidator.class)
public @interface CellPhone {

//	String message() default "{com.joinway.bean.validation.constraints.CellPhone.message}";
	String message() default "手机号必须是 11位数字";
	
	Class<?>[] groups() default { };

	Class<? extends Payload>[] payload() default { };
	
}